package src.com.foreknow.demo14;

public class ExceptionDemo1 {
    public static void main(String[] args) {

        try{
            int[] array = {1,2};
            for (int i =0;i <=array.length;i++){
                System.out.println(array[i]);
            }
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println(e.getMessage());
        }finally {
            System.out.println("1111111111");
        }
        int[] array = {1,2,3,4,5};
        for (int i =0;i <=array.length;i++){
            System.out.println(array[i]);
        }
        System.out.println("continue....");
    }
}










